/**
 * @Main.java  COPYRIGHT xiaojian
 * 
 * Created on 2017年10月27日 下午4:09:08
 */
package xj.toolkit.ebus.yaml;

import java.io.FileInputStream;

import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;

import xj.toolkit.ebus.unit.yaml.Units;

/**
 * @author <a href="mailto:cxj2000@gmail.com">xiaojian.cao</a>
 *
 */
public class Main {

	public static void main(String[] args) throws Exception {
		Yaml yaml = new Yaml(new Constructor(Units.class));
		
		Object o = yaml.load(new FileInputStream("D:\\xiaojian-source\\xt-toolkit\\xt-ebus\\src\\main\\resources\\local.yaml"));
		
		System.out.println(o);
	}
	
}
